<template>
    <!-- 系统公告管理 -->
    <entity-manager :fields="fields" apiPrefix="/sys/announcement" :withOperations="false" :withNew="false"/>
</template>
<script setup>
const fields = ref([
    { label: "标题", prop: "title", required: true },
    { label: "内容", prop: "content", required: true, type: "textarea" },
    { label: "状态", prop: "status", needNew: false, width: "100px" },
    { label: "是否置顶", prop: "fixed", type: "checkbox", width: "100px", align: "center" },
    { label: "生效日期", prop: "startDate", type: "datePicker", width: "200px", format: "YYYY-MM-DD" },
    { label: "失效日期", prop: "endDate", type: "datePicker", width: "200px", format: "YYYY-MM-DD" },
]);
</script>

<style lang="scss" scoped></style>
